/* 移动端滑动组件样式 */

.mobile-swiper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
  -webkit-tap-highlight-color: transparent;
}

.mobile-swiper-container {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

.mobile-swiper-container.horizontal {
  flex-direction: row;
}

.mobile-swiper-container.vertical {
  flex-direction: column;
}

.mobile-swiper-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* 指示器样式 */
.mobile-swiper-indicators {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.mobile-swiper-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-swiper-indicator:hover {
  background: rgba(255, 255, 255, 0.7);
}

.mobile-swiper-indicator.active {
  background: #007bff;
  transform: scale(1.2);
}

/* 箭头导航样式 */
.mobile-swiper-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.mobile-swiper-arrow:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(-50%) scale(1.1);
}

.mobile-swiper-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.mobile-swiper-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: translateY(-50%);
}

.mobile-swiper-arrow:disabled:hover {
  background: rgba(0, 0, 0, 0.5);
  transform: translateY(-50%);
}

.mobile-swiper-arrow-prev {
  left: 12px;
}

.mobile-swiper-arrow-next {
  right: 12px;
}

/* 响应式优化 */
@media (max-width: 480px) {
  .mobile-swiper-indicators {
    bottom: 8px;
    gap: 4px;
  }
  
  .mobile-swiper-indicator {
    width: 6px;
    height: 6px;
  }
  
  .mobile-swiper-arrow {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  
  .mobile-swiper-arrow-prev {
    left: 8px;
  }
  
  .mobile-swiper-arrow-next {
    right: 8px;
  }
}

@media (max-width: 375px) {
  .mobile-swiper-indicators {
    bottom: 6px;
  }
  
  .mobile-swiper-arrow {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  
  .mobile-swiper-arrow-prev {
    left: 6px;
  }
  
  .mobile-swiper-arrow-next {
    right: 6px;
  }
}

@media (max-width: 320px) {
  .mobile-swiper-indicators {
    bottom: 4px;
    gap: 3px;
  }
  
  .mobile-swiper-indicator {
    width: 5px;
    height: 5px;
  }
  
  .mobile-swiper-arrow {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
  
  .mobile-swiper-arrow-prev {
    left: 4px;
  }
  
  .mobile-swiper-arrow-next {
    right: 4px;
  }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
  .mobile-swiper-indicator {
    background: rgba(255, 255, 255, 0.3);
  }
  
  .mobile-swiper-indicator:hover {
    background: rgba(255, 255, 255, 0.5);
  }
  
  .mobile-swiper-indicator.active {
    background: #007bff;
  }
  
  .mobile-swiper-arrow {
    background: rgba(255, 255, 255, 0.2);
    color: #333;
  }
  
  .mobile-swiper-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
  }
}
